import { projectService } from '../axios'

//获取
// /:8889/getProjectList 获取项目列表
export function getProjectList() {
    return projectService.get("getProjectList")
}

// 获取 根样品名称获取样品信息
export function sampleInfo(sample) {
    var data = new FormData();
    data.sampleName = sample
    return projectService.post("sampleInfo", data)
}

// 获取 根据项目名称获取所有样品信息
export function sampleInfoByProject(projectName) {
    var data = new FormData();
    data.append("sampleName", "%");
    data.append("relatedProject", projectName);
    return projectService.post("sampleInfo", data)
}

// 获取 全部采样信息列表
export function querySamplingInfoList(){
    return projectService.get("querySamplingInfoList")
}

// 获取 采样图片
export function querySamplingImgById(imgId){
    const params = '?id=' + imgId
    return projectService.get("querySamplingImgById" + params)
}